
using AutoMapper;
using Yozeev.BusinessLogic;
using Yozeev.BusinessLogic.Dtos;

namespace Yozeev.CustomDtoAutoMapper
{

	/// <summary>
    /// 配置CommonCustomer的AutoMapper映射
	/// 前往 <see cref="YozeevApplicationModule"/>的AbpAutoMapper配置方法下添加以下代码段
    /// CommonCustomerDtoAutoMapper.CreateMappings(configuration);
    /// </summary>
	internal static class CommonCustomerMapper
    {
        public static void CreateMappings(IMapperConfigurationExpression configuration)
        {
            configuration.CreateMap <CommonCustomer,CommonCustomerListDto>();
            configuration.CreateMap <CommonCustomerListDto,CommonCustomer>();

            configuration.CreateMap <CommonCustomerEditDto,CommonCustomer>();
            configuration.CreateMap <CommonCustomer,CommonCustomerEditDto>();

            //// custom codes


            configuration.CreateMap<CommonCustomerEditDto, Customer>();
            configuration.CreateMap<Customer, CommonCustomerEditDto>();


            //// custom codes end
        }
	}
}
